package juc.java8;

public interface PersonFactory<P extends Person> {
    P create(String firstName, String lastName);

    public static void main(String[] args) {
//        PersonFactory<Person> personFactory = Person::new;
//        personFactory.create("aa","bb");

    }
}
